Release 10.1A: OpenEdge Development:
Programming Interfaces
Passing the Unknown value and NULL values
If you have to pass a
NULLvalue to a shared library routine, do not pass a nullMEMPTRvariable. Instead, define theINPUTorINPUT-OUTPUTparameter as aLONG, and pass it 0 when you run the routine. If this conflicts with calling the shared library entry point another way, you can create a second declaration using theORDINALoption of thePROCEDUREstatement. (Note that this option is not available on UNIX.)One exception to the rule of not passing a null
MEMPTRvariable is aMEMPTRarray, in which you can pass aMEMPTRof size 0.You cannot pass the Unknown value (
?), regardless of the parameter’s data type.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |